home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 8
/
FM Towns Free Software Collection 8.iso
/
fb386
/
eiyoukei
/
sconvrt.bas
< prev
next >
Wrap
BASIC Source File
|
1994-06-01
|
2KB
|
42 lines
100 'SAVE "SCONVRT.BAS",A
110 'FBHGーFB386
120 ' V2.2 94.02.03
130 GOSUB *INI
140 OPEN "0:(128)SEIBUN.DAT" AS #1
150 FIELD #1,4 AS FG11$,48 AS FG12$
160 DIM FG1$(19)
170 FOR I=1 TO 19:FIELD #1,4*(I-1)+52 AS DAMMY$,4 AS FG1$(I):NEXT I
180 NAME "1:SEIBUN.DAT" AS "1:SEIBUN.BAK"
190 OPEN "1:(128)SEIBUN.DAT" AS #2
200 FIELD #2,4 AS FG21$,48 AS FG22$
210 DIM FG2$(19)
220 FOR I=1 TO 19:FIELD #2,4*(I-1)+52 AS DAMMY$,4 AS FG2$(I):NEXT I
230 ED=LOF(1)
240 FOR II=1 TO ED
250 GET #1,II
260 LSET FG21$=MKS$(CVSMBF(FG11$))
270 LSET FG22$=FG12$
280 FOR I=1 TO 19:LSET FG2$(I)=MKS$(CVSMBF(FG1$(I))):NEXT I
290 PUT #2,II
300 NEXT II
310 CLOSE:RUN "MENTE.BAS"
1000 *INI ON ERROR GOTO *ERR
1010 CLS:PRINT "このプログラムはFB386で実行してください。"
1020 SCREEN@ 0
1030 PRINT "FM-R(FB-HG)のSEIBUN.DATを TOWNS(FB-386)のSEIBUN.DATに変換します。"
1040 INPUT X$
1050 PRINT "FM-R(FB-HG)のSEIBUN.DATをドライブ0にセットしてください。"
1060 INPUT X$
1070 PRINT "TOWNS(FB-386)のSEIBUN.DATを作製するフロッピーデスクをドライブ1にセットしてください。"
1080 PRINT "ドライブ1にSEIBUN.DATがある場合にはSEIBUN.BAKにリネームします。"
1090 INPUT X$
1095 'SHELL "B:":SHELL "CD \LIB":SHELL "A:"
1100 RETURN
1110 *ERR
1120 IF ERL=180 AND ERR=63 THEN RESUME NEXT
1130 IF ERL=180 AND ERR=64 THEN KILL "1:SEIBUN.BAK":RESUME
1135 IF ERL=1020 THEN RESUME 310
1136 IF ERL=1095 THEN RESUME 310
1137 PRINT "ERR=";ERR;," ERL=";ERL
1140 *ERRE ON ERROR GOTO 0:CLOSE:END